//
//  GDCatPlateInputViewCell.m
//  Police
//
//  Created by ilongge on 2020/10/21.
//  Copyright © 2020 admin. All rights reserved.
//

#import "GDCarPlateInputViewCell.h"

@interface GDCarPlateInputViewCell()

@property (weak, nonatomic) IBOutlet UILabel *textTitleLabel;

@end

@implementation GDCarPlateInputViewCell

+ (instancetype)carPlateInputViewCell:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath
{
    GDCarPlateInputViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:[[GDCarPlateInputViewCell class] description]
                                                                              forIndexPath:indexPath];
    return cell;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
    self.layer.cornerRadius = 4;
    self.clipsToBounds = YES;
}

- (void)configText:(NSString *)title andActive:(BOOL)isActive
{
    self.textTitleLabel.text = title;
    if (isActive && ![SpecilChars isEqualToString:title])
    {
        self.textTitleLabel.textColor = ColorFromHex(0x333333, 1);
    }
    else
    {
        self.textTitleLabel.textColor = ColorFromHex(0xD4D4D4, 1);
    }
}

@end
